package net.risesoft.model;

import java.io.Serializable;

import lombok.Data;

/**
 * 组织身份事件
 *
 * @author mengjuhua
 * @date 2022/09/22
 */
@Data
public class MessageOrg implements Serializable {

    private static final long serialVersionUID = -5015205405901752553L;

    /**
     * 事件对象信息
     */
    private Serializable orgObj;

    /** 事件类型 */
    private String eventType;

    /** 事件发送方式 */
    private String eventTarget;

    /** 租户id */
    private String tenantId;

    public MessageOrg(Serializable orgObj, String eventType, String eventTarget, String tenantId) {
        this.orgObj = orgObj;
        this.eventType = eventType;
        this.eventTarget = eventTarget;
        this.tenantId = tenantId;
    }
}
